package com.itheima.spring_observer_review;

import org.springframework.context.ApplicationListener;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-26 21:56
 **/
public class MessageListener implements ApplicationListener<MessageEvent> {
    
    @Override
    public void onApplicationEvent(MessageEvent messageEvent) {
        System.out.println("获取到手机: " + messageEvent.getPhone());
    }
}
